package com.ljx.itbbs.server.mall.service;

import com.ljx.itbbs.server.mall.domain.entity.CouponEntity;
import com.ljx.itbbs.server.mall.domain.vo.req.CouponSaveReq;
import com.ljx.itbbs.server.mall.domain.vo.req.CouponUpdateReq;
import com.ljx.itbbs.server.mall.domain.vo.resp.CouponAdminResp;
import com.ljx.itbbs.server.mall.domain.vo.resp.CouponResp;

import java.util.List;

public interface CouponService {


    List<CouponResp> getUserCouponList(Long userId);

    CouponEntity getById(Long couponId);

    List<CouponResp> getCouponList();

    void seckill(Long userId, Long couponId);

    void reduceStock(Long couponId);

    CouponEntity getUserCoupon(Long userId, Long couponId);

    void saveCoupon(CouponSaveReq req);

    void updateCoupon(CouponUpdateReq req);

    List<CouponAdminResp> getAdminCouponList();
}
